import request from '@/utils/request'

// 数据报表相关API接口
export default {
  // 获取报表筛选选项
  getFilterOptions() {
    return request({
      url: '/system/report/filter-options',
      method: 'get'
    })
  },

  // 获取业务办理量趋势
  getBusinessVolumeTrend(params) {
    return request({
      url: '/system/report/business-volume-trend',
      method: 'get',
      params
    })
  },

  // 获取窗口服务统计
  getWindowServiceStats(params) {
    return request({
      url: '/system/report/window-service-stats',
      method: 'get',
      params
    })
  },

  // 获取用户满意度
  getUserSatisfaction(params) {
    return request({
      url: '/system/report/user-satisfaction',
      method: 'get',
      params
    })
  },

  // 获取热门业务TOP5
  getTopBusinessServices(params) {
    return request({
      url: '/system/report/top-business-services',
      method: 'get',
      params
    })
  },

  // 导出报表
  exportReport(params) {
    return request({
      url: '/system/report/export',
      method: 'post',
      data: params,
      responseType: 'blob'
    })
  }
}
